<?php
/**
 * Created by PhpStorm.
 * User: charles
 * Date: 2017-11-12
 * Time: 13:10
 */

namespace App\Http\Controllers\LA;


use App\Http\Controllers\Controller;
use App\Models\Order;

class OrderController extends Controller
{
    public function index()
    {
        $orders = Order::query()
            ->with('wechat_upload.member', 'member')
            ->orderBy('id', 'desc')
            ->paginate(20);
        return view('la.order.index', compact('orders'));
    }

}